package com.rao.gmall.feign.item;

import com.rao.gmall.common.result.Result;
import com.rao.gmall.feign.item.fallback.SkuItemFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author nzmxfan
 * @create 2021-08-08-16:39
 */
@FeignClient(value = "service-item", fallback = SkuItemFeignClientFallback.class )
public interface SkuItemFeignClient {

    @GetMapping("/api/item/{skuId}")
    Result getItem(@PathVariable("skuId") Long skuId);
}